package com.uls.questionnaire.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.uls.common.annotation.Excel;
import com.uls.common.core.domain.BaseEntity;

/**
 * 选项信息对象 zxh_optiones
 * 
 * @author zxh
 * @date 2024-10-31
 */
public class ZxhOptiones extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 选项id */
    @Excel(name = "选项id")
    private Long optionId;

    /** 问题id */
    @Excel(name = "问题id")
    private Long questionId;

    /** 选项的内容 */
    @Excel(name = "选项的内容")
    private String optionText;

    /** 更新时间 */
    private Date updatedTime;

    /** 选项版本号 */
    private Long version;
//    public ZxhOptiones(Long questionId) {
//        this.questionId = questionId;
//    }



    public void setOptionId(Long optionId) 
    {
        this.optionId = optionId;
    }

    public Long getOptionId() 
    {
        return optionId;
    }
    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }
    public void setOptionText(String optionText) 
    {
        this.optionText = optionText;
    }

    public String getOptionText() 
    {
        return optionText;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }
    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("optionId", getOptionId())
            .append("questionId", getQuestionId())
            .append("optionText", getOptionText())
            .append("createTime", getCreateTime())
            .append("updatedTime", getUpdatedTime())
            .append("version", getVersion())
            .toString();
    }
}
